package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.XxScheduleManagementLimitMapper;
import com.ruoyi.system.domain.XxScheduleManagementLimit;
import com.ruoyi.system.service.IXxScheduleManagementLimitService;
import com.ruoyi.common.core.text.Convert;

/**
 * 雄信权限相关权限Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-04-12
 */
@Service
public class XxScheduleManagementLimitServiceImpl implements IXxScheduleManagementLimitService 
{
    @Autowired
    private XxScheduleManagementLimitMapper xxScheduleManagementLimitMapper;

    /**
     * 查询雄信权限相关权限
     * 
     * @param id 雄信权限相关权限主键
     * @return 雄信权限相关权限
     */
    @Override
    public XxScheduleManagementLimit selectXxScheduleManagementLimitById(Integer id)
    {
        return xxScheduleManagementLimitMapper.selectXxScheduleManagementLimitById(id);
    }

    /**
     * 查询雄信权限相关权限列表
     * 
     * @param xxScheduleManagementLimit 雄信权限相关权限
     * @return 雄信权限相关权限
     */
    @Override
    public List<XxScheduleManagementLimit> selectXxScheduleManagementLimitList(XxScheduleManagementLimit xxScheduleManagementLimit)
    {
        return xxScheduleManagementLimitMapper.selectXxScheduleManagementLimitList(xxScheduleManagementLimit);
    }

    /**
     * 新增雄信权限相关权限
     * 
     * @param xxScheduleManagementLimit 雄信权限相关权限
     * @return 结果
     */
    @Override
    public int insertXxScheduleManagementLimit(XxScheduleManagementLimit xxScheduleManagementLimit)
    {
        xxScheduleManagementLimit.setCreateTime(DateUtils.getNowDate());
        return xxScheduleManagementLimitMapper.insertXxScheduleManagementLimit(xxScheduleManagementLimit);
    }

    /**
     * 修改雄信权限相关权限
     * 
     * @param xxScheduleManagementLimit 雄信权限相关权限
     * @return 结果
     */
    @Override
    public int updateXxScheduleManagementLimit(XxScheduleManagementLimit xxScheduleManagementLimit)
    {
        xxScheduleManagementLimit.setUpdateTime(DateUtils.getNowDate());
        return xxScheduleManagementLimitMapper.updateXxScheduleManagementLimit(xxScheduleManagementLimit);
    }

    /**
     * 批量删除雄信权限相关权限
     * 
     * @param ids 需要删除的雄信权限相关权限主键
     * @return 结果
     */
    @Override
    public int deleteXxScheduleManagementLimitByIds(String ids)
    {
        return xxScheduleManagementLimitMapper.deleteXxScheduleManagementLimitByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除雄信权限相关权限信息
     * 
     * @param id 雄信权限相关权限主键
     * @return 结果
     */
    @Override
    public int deleteXxScheduleManagementLimitById(Integer id)
    {
        return xxScheduleManagementLimitMapper.deleteXxScheduleManagementLimitById(id);
    }
}
